package com.atguigu.flink.util;

import com.atguigu.flink.bean.WaterSensor;

import java.util.ArrayList;
import java.util.List;

public class AtguiguUtil {
    public static <T>List<T> toList(Iterable<T> elements) {
        ArrayList<T> list = new ArrayList<>();
        for (T t : elements) {
            list.add(t);
        }
        return list;
    }
}
